SERVER_PORT = 8999
DEBUG = True
SQLALCHEMY_ECHO = True

# 数据库配置
# SQLALCHEMY_DATABASE_URI = 'mysql://root:123456@127.0.0.1/food_db'
# SQLALCHEMY_TRACK_MODIFICATIONS = False
# SQLALCHEMY_ENCODING = "utf8mb4"

# 分页配置
PAGE_SIZE = 5
PAGE_DISPLAY = 10

# # 状态配置
# STATUS_MAPPING = {
#     "1": "正常",
#     "0": "已删除"
# }

'''
过滤url
'''
# IGNORE_URLS = [
#     "^/user/login",
#     "^/api"
# ]
#
# API_IGNORE_URLS = [
#     "^/api"
# ]

IGNORE_CHECK_LOGIN_URLS = [
    "^/static",
    "^/favicon.ico"
]

# 上传方法的配置
UPLOAD = {
    'ext': ['jpg', 'gif', 'bmp', 'jpeg', 'png'],
    'prefix_path': '/web/static/upload/',
    'prefix_url': '/static/upload/'
}

# 域名-图片上传地址的配置
APP = {
    'domain': 'http://127.0.0.1:8999'
}
